package com.zsrt.java.day20170111.lh.daily.ch02;

import java.util.Date;

import org.junit.Test;

public class DateTest {
	
	@Test
	public void dateTest() throws Exception {
		
		Date date=new Date();
		
		//2017-1900
		System.out.println(date.getYear());
		
		//2017-01-11 08:44
		System.out.println(date.toString());
		
		//1970-1-1 00点 到现在的时间毫秒
		System.out.println(date.getTime());
		
		
		
		
		
	}

}
